//
//  UserDataSingleton.h
//  CommunityNannyO2O
//
//  Created by apple on 15/7/20.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <UIKit/UIKit.h>

@interface UserDataSingleton : NSObject

+(UserDataSingleton *)shareInstance;

-(BOOL)isLogin;

-(void)pleaseLogin:(UIViewController *)vc;

-(void)loginOut;

-(void)LoginWithUserId:(NSString *)userId
                MidiId:(NSString *)midiId
              NickName:(NSString *)nickName
              RealName:(NSString *)realName
                 Email:(NSString *)email
                 Phone:(NSString *)phone
              National:(NSString *)national
                   Sex:(NSString *)sex
                People:(NSString *)people
                IdCard:(NSString *)idCard
              Birthday:(NSString *)birthday
               HeadImg:(NSString *)headImg;

-(void)getUserInfo;

-(void)setGeTuiClientID:(NSString *)clientId;
-(NSString *)getGeTuiClientID;

-(void)setLocalHeadImageData:(UIImage *)image;
-(UIImage *)getLocalHeadImage;
-(void)clearLocalHeadImage;

@property (nonatomic,copy)NSString *user_id;

@property (nonatomic, strong) NSString *clientId;   //个推clientId

@property (nonatomic,strong)NSString *curCityId;
@property (nonatomic,strong)NSString *cityName; //当前城市
@property (nonatomic , strong)CLLocationManager *locationMgr;
@property (nonatomic , copy) NSString * longitude;    //经度
@property (nonatomic , copy) NSString * latitude;     //纬度

@property (nonatomic ,copy) NSString * province;   //省份

@property (nonatomic , copy) NSString *midi_id;
@property (nonatomic , copy) NSString *nickname;
@property (nonatomic , copy) NSString *real_name;
@property (nonatomic , copy) NSString *eamil;
@property (nonatomic , copy) NSString *phone;
@property (nonatomic , copy) NSString *nationality;
@property (nonatomic , copy) NSString *sex;
@property (nonatomic , copy) NSString *people;
@property (nonatomic , copy) NSString *id_card;
@property (nonatomic , copy) NSString *birthday;
@property (nonatomic , copy) NSString *head_img; //头像地址
@property (nonatomic , copy) NSString *level;
@property (nonatomic , copy) NSString *role_id;
@property (nonatomic , copy) NSString *ismidisir;
@property (strong,nonatomic) NSMutableArray *majorList;

@property (strong, nonatomic) UIImageView *headImageView;

//报名考试
@property (nonatomic, copy) NSString *examLevel;
@property (nonatomic, copy) NSString *examCourse;
@property (nonatomic, copy) NSString *examCourseId; //专业id
@property (nonatomic, copy) NSString *place;
@property (nonatomic, copy) NSString *placeId;
@property (nonatomic, copy) NSString *year;
@property (nonatomic, copy) NSString *month;
@property (nonatomic, copy) NSString *day;
@property (nonatomic, copy) NSString *sHour;
@property (nonatomic, copy) NSString *sMinute;
@property (nonatomic, copy) NSString *eHour;
@property (nonatomic, copy) NSString *eMinute;
@property (nonatomic, copy) NSString *timeSecionId;//考试时间段id
@property (nonatomic, copy) NSString *exam_id;
-(BOOL)isLogin;
@property(assign , nonatomic)BOOL isGotSelfInfo;     //是否获取了个人信息
@property(assign , nonatomic)BOOL isSelfInfoChange; // 个人信息是否改变
@property(assign , nonatomic)BOOL isOrderChange;    //订单是否有变化
//专业id
@property (nonatomic, copy) NSString *quiTa;        //电吉他
@property (nonatomic, copy) NSString *JazzDrum;     //爵士鼓
@property (nonatomic, copy) NSString *bass;         //电贝斯
@property (nonatomic, copy) NSString *musicBase;    //音乐基础


@property (nonatomic ,copy) NSString *currSelectExamKind; //当前选中的考试类型

//城市列表
@property (nonatomic, strong) NSMutableArray *cityList;

//已选城市
@property (nonatomic, copy) NSString *selectedCity;


@end




















